package com._520it.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@Getter@Setter
public class OrderBill {
    public static final int STATE_ZC = 0; //暂存单
    public static final int STATE_SQPG = 10;//申请批改
    public static final int STATE_PGYES = 11;//批改通过
    public static final int STATE_PGNO = 12;//批改未通过
    public static final int STATE_SQHB = 20;//申请核保
    public static final int STATE_HBYES = 21;//核保通过
    public static final int STATE_HBNO = 22;//核保为通过
    private Long id;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date applyTime; //申请投保时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date beginTime;//保险起效时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime; //保险截至时间
    private Long organizationId; //承保机构
    private Long productId;//保险产品
    private Long clientCarInfoId;//客户车辆信息id
    private Integer modelType;//模板类型
    private String carNumber;//车牌号
    private String coefficient;//短期系数
    private Integer effectNow;//即时生效
    private String orderBillNumber;//申请单号
    private String insurancePolicyNumber;//保单号
    private Integer issue;//期次
    private String policyCardNumber;//单证号
    private String policyCardType;//单证类型
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date paymentTime;//缴费时间
    private Integer paymentType;//缴费方式
    private Integer businessResource;//业务来源
    private String trenchMiddle;//渠道中级
    private String trenchSub;//渠道子集
    private String employeeSn;//业务员工号
    private ClientCarInfo clientCarInfo;//客户车辆信息
    private String inputUserSn;//录入员工号
    private String correctUserSn;//批改员工号
    private String  examineUserSn; //审核员工号
    private String applyClient;//投保人信息 存储身份证号码
    private String carOwner;//车主信息 存储身份证号码
    private String recognizee;//被保人信息 存储身份证号码
    private Integer totalTimes;//保险时间
    private Integer renewalInsurance;//续保状态
    private Integer renewalInsuranceTime;//续保时长
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date applicationTime;//批改申请时间
    private Integer state;//保单状态
    private String remark;//备注
    private Client client;
    private Product product;
    private AccountInfo accountInfo;
    private CarInfo carInfo;
    private DriverInfo driverInfo;
    private Organization organization;
    private Employee inputUser; //表单录入人对象



}